//
//  ZLPUserTableViewCell.m
//  TangYi
//
//  Created by dllo on 15/11/1.
//  Copyright © 2015年 赵连鹏. All rights reserved.
//

#import "ZLPUserTableViewCell.h"


@implementation ZLPUserTableViewCell

- (void)dealloc {
    [_nameLabel release];
    [_picImageView release];
    [_RAMLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.nameLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.nameLabel];
    [_nameLabel release];
    
    self.picImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.picImageView];
    [_picImageView release];
    
    self.RAMLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.RAMLabel];
    [_RAMLabel release];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(5, 8, 30, 30);
    self.nameLabel.frame = CGRectMake(self.contentView.frame.size.width / 3 - 50, 8, 200, 30);
    self.RAMLabel.frame = CGRectMake(self.contentView.frame.size.width / 3 * 2 + 50, 8, 100, 30);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
